﻿namespace Dcms.BLL
{
    using Dcms.IDAL;
    using Dcms.Model;
    using System;
    using System.Collections.Generic;

    public class Dcms_RoleBLL
    {
        private IDcms_RoleDAL rOp = Dcms.DALFactory.DALFactory.CreateDcms_Role();

        public Dcms_RoleModel AddModel(Dcms_RoleModel model)
        {
            return this.rOp.AddModel(model);
        }

        public void DeleteModelByID(int ID)
        {
            this.rOp.DeleteModelByID(ID);
        }

        public string GetDataCount(string SqlStr)
        {
            return this.rOp.GetDataCount(SqlStr);
        }

        public IList<Dcms_RoleModel> GetDataListByPage(string SqlStr, int CurPage, int PageSize)
        {
            return this.rOp.GetDataListByPage(SqlStr, CurPage, PageSize);
        }

        public int GetLevel(int RoleID)
        {
            return this.rOp.GetLevel(RoleID);
        }

        public Dcms_RoleModel GetModelByID(int ID)
        {
            return this.rOp.GetModelByID(ID);
        }

        public IList<Dcms_RoleModel> GetModelList()
        {
            return this.rOp.GetModelList();
        }

        public Dcms_RoleModel Update(Dcms_RoleModel model)
        {
            return this.rOp.Update(model);
        }
    }
}

